package com.qfedu.dao;

import com.qfedu.entity.Anonymity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AnonymityDao {

    /**
     * 查询所有匿名投诉信息
     * @return
     */
    @Select("select * from t_anonymity")
    List<Anonymity> queryAllAnonymity();

    /**
     * 添加匿名投诉信息
     * @param anonymity
     * @return
     */
    @Insert("insert into t_anonymity(id,content,u_no) values(#{id},#{content},#{u_no})")
    int add(Anonymity anonymity);
}
